package com.zhixue.content.controller;

import com.zhixue.content.model.dto.CourseCategoryTreeDto;
import com.zhixue.content.service.CourseCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Auther: 李 力
 * @Date: 2025/4/7
 * @Description: com.zhixue.content.controller
 * @version: 1.0
 */
@RestController
@RequestMapping
public class CourseCategoryController {

    @Autowired
    private CourseCategoryService categoryService;

    //课程分类查询
    @GetMapping("/course-category/tree-nodes")
    public List<CourseCategoryTreeDto> queryTreeNodes() {
        return categoryService.selectTreeNodes("1");
    }
}
